<%-- 
    Document   : newUser
    Created on : May 1, 2011, 7:25:22 PM
    Author     : enriquer
--%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ page contentType="text/html" pageEncoding="UTF-8"%>

<form dojoType="dijit.form.Form" id="frmSignUp" name="frmSignUp" action="doSignUp.htm" method="POST">

    <table cellspacing="10" align="left">
        <tr>
            <td>
                <label for="txtFirstName"><spring:message code="signup.firstname"/></label>
            </td>
            <td>
                <input type="text" id="txtFirstName" name="txtFirstName" dojoType="dijit.form.ValidationTextBox"
                       required="true" trim="true" maxLength="50"
                       invalidMessage="<spring:message code="message.invalid"/>"
                       missingMessage="<spring:message code="message.empty"/>"/>
            </td>
        </tr>
        <tr>
            <td>
                <label for="txtLastName"><spring:message code="signup.lastname"/></label>
            </td>
            <td>
                <input type="text" id="txtLastName" name="txtLastName" dojoType="dijit.form.ValidationTextBox"
                       required="true" trim="true" maxLength="50"
                       invalidMessage="<spring:message code="message.invalid"/>"
                       missingMessage="<spring:message code="message.empty"/>"/>
            </td>
        </tr>
        <tr>
            <td>
                <label for="txtEmail"><spring:message code="signup.email"/></label>
            </td>
            <td>
                <input type="text" id="txtEmail" name="txtEmail" dojoType="dijit.form.ValidationTextBox"
                       required="true" trim="true" maxLength="50"
                       invalidMessage="<spring:message code="message.invalid"/>"
                       missingMessage="<spring:message code="message.empty"/>"/>
            </td>
        </tr>
        <tr>
            <td>
                <label for="txtPassword"><spring:message code="signup.password"/></label>
            </td>
            <td>
                <input type="password" id="txtPassword" name="txtPassword" dojoType="dijit.form.ValidationTextBox"
                       required="true" maxLength="20"
                       invalidMessage="<spring:message code="message.invalid"/>"
                       missingMessage="<spring:message code="message.empty"/>"/>
            </td>
        </tr>
        <tr>
            <td>
                <label for="txtConfirmPassword"><spring:message code="signup.confirmpassword"/></label>
            </td>
            <td>
                <input type="password" id="txtConfirmPassword" name="txtConfirmPassword" dojoType="dijit.form.ValidationTextBox"
                       required="true" maxLength="20"
                       invalidMessage="<spring:message code="message.invalid"/>"
                       missingMessage="<spring:message code="message.empty"/>"/>
            </td>
        </tr>
        <tr>
            <td colspan="2" align="center">
                <br>
                <button dojoType="dijit.form.Button" type="button" id="btnSubmit" name="btnSubmit" onClick="post('frmSignUp')">
                    <spring:message code="signup.submit"/>
                </button>
                &nbsp;&nbsp;&nbsp;
                <button dojoType="dijit.form.Button" type="reset" id="btnReset" name="btnReset">
                    <spring:message code="signup.reset"/>
                </button>
            </td>
        </tr>
    </table>
    <br>

</form>
